package com.share.demo.service;

import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;

/**
*
* @date 2017/12/17
* @author caifan 
*
*/
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String name) {
        RuntimeMXBean runtimeMXBean = ManagementFactory.getRuntimeMXBean();
        return runtimeMXBean.getName() + ":hello:" + name;
    }
}
